package com.antdesignbackend.backend.configure.dept.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 部门管理
 *
 * @author 不二
 * @email dept
 * @date 2020-08-10 10:12:26
 */

@Data
@TableName(value = "sys_dept")
public class Dept implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "dept_id")
	private Long dept_id;

	//父部门id
	@TableField(value = "parent_id")
	private Long parent_id;
	//祖级列表
	@TableField(value = "ancestors")
	private String ancestors;
	//部门名称
	@TableField(value = "dept_name")
	private String dept_name;
	//负责人
	@TableField(value = "leader")
	private String leader;
	//创建者
	@TableField(value = "create_by")
	private String create_by;
	//创建时间
	@TableField(value = "create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date create_time;
	//更新者
	@TableField(value = "update_by")
	private String update_by;
	//更新时间
	@TableField(value = "update_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date update_time;

}
